<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>京东某个商品的价格信息</title>
		<script src="js/jquery.min.js"></script>
	</head>
	<body>
		<div>
			商品编号: <span id="id"></span>
		</div>
		<div>
			商品价格: <span id="price"></span>
		</div>
	</body>
	<script>
		$.ajax({
			type: 'get',
			url: 'https://p.3.cn/prices/mgets?skuIds=J_100010378153',
			dataType: 'jsonp',
			success: function(data){
				var obj = data;
				var price = obj[0].p;
				var id = obj[0].id;
				$('#id').text(id).css('color','blue');
				$('#price').text(price).css('color','red');
			}
			
		});
	</script>
</html>
